package cpm.cloud;

import cpm.rule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author dell
 * 添加自定义负载均衡MyRule
 * 实现feign的远程调用
 */
@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "MICROSERVICE",configuration = MyRule.class)
@EnableFeignClients(basePackages = {"cpm.cloud.feign"})
public class ConsumerFeignApp80 {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerFeignApp80.class,args);
    }
}
